package org.example.sy5.service.serviceImpl;

import org.example.sy5.entity.CustEntity;
import org.example.sy5.mapper.CustMapper;
import org.example.sy5.service.CustService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CustServiceImpl implements CustService {
    @Autowired
    private CustMapper custMapper;
    @Override
    public List<CustEntity> getAll() {
        return custMapper.getall();
    }

    @Override
    public void add(CustEntity custEntity) {
        custMapper.add(custEntity);
    }

    @Override
    public void del(int id) {
        custMapper.del(id);
    }

    @Override
    public void upd(CustEntity custEntity) {
        custMapper.upd(custEntity);
    }
}
